-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.x: Add doAfterTerminate callback to the Single type. #5093
Conversation
* @return a Single that emits the same items as the source Single, then invokes the | ||
* {@link Action} | ||
* @see <a href="http://reactivex.io/documentation/operators/do.html">ReactiveX operators documentation: Do</a> | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, please add @since 2.0.6 - experimental
to the javadoc.
/** | ||
* Calls an action after pushing the current item or an error to the downstream. | ||
* @param <T> the value type | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add @since 2.0.6 - experimental
here as well. No need for the @Experimental
annotation.
Codecov Report
@@ Coverage Diff @@
## 2.x #5093 +/- ##
============================================
+ Coverage 95.52% 95.64% +0.11%
- Complexity 5548 5557 +9
============================================
Files 614 615 +1
Lines 39651 39682 +31
Branches 5577 5578 +1
============================================
+ Hits 37877 37954 +77
+ Misses 778 745 -33
+ Partials 996 983 -13
Continue to review full report at Codecov.
|
As mentioned in THIS StackOverflow question, doAfterTerminate() is currently missing in RxJava2. There's no strong reason for that, so this PR adds support for it.